<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>viewport | Qin-BookNote</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../note/css/buju.html" />
    
    
    <link rel="prev" href="../../note/css/donghua.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="15"
        data-chapter-title="viewport"
        data-filepath="note/css/viewport.md"
        data-basepath="../.."
        data-revision="Fri Sep 01 2017 09:21:16 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="note/html/1.html">
            
                
                    <a href="../../note/html/1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="note/html/jianjie.html">
            
                
                    <a href="../../note/html/jianjie.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        HTML的简介和标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="note/html/emmet.html">
            
                
                    <a href="../../note/html/emmet.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        emmet
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="note/html/text.html">
            
                
                    <a href="../../note/html/text.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        实体字符与文本
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="note/html/yuyi.html">
            
                
                    <a href="../../note/html/yuyi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        H5的语义化标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="note/html/biao.html">
            
                
                    <a href="../../note/html/biao.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        表格
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="note/html/table.html">
            
                
                    <a href="../../note/html/table.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        table表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="note/html/form.html">
            
                
                    <a href="../../note/html/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="note/html/input.html">
            
                
                    <a href="../../note/html/input.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        input属性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="note/html/lianlie.html">
            
                
                    <a href="../../note/html/lianlie.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        链接和列表
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="note/html/libiao.html">
            
                
                    <a href="../../note/html/libiao.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="note/html/lianjie.html">
            
                
                    <a href="../../note/html/lianjie.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        超链接
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="note/html/media.html">
            
                
                    <a href="../../note/html/media.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        多媒体
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1" data-path="note/html/audio.html">
            
                
                    <a href="../../note/html/audio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.1.</b>
                        
                        音频和视频
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="5" data-path="note/html/head.html">
            
                
                    <a href="../../note/html/head.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        head
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="5.1" data-path="note/html/meta.html">
            
                
                    <a href="../../note/html/meta.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.1.</b>
                        
                        meta标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="note/html/link.html">
            
                
                    <a href="../../note/html/link.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.2.</b>
                        
                        link标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="6" data-path="note/css/css.html">
            
                
                    <a href="../../note/css/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1" data-path="note/css/cssjie.html">
            
                
                    <a href="../../note/css/cssjie.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.1.</b>
                        
                        css的简介
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7" data-path="note/css/xuanze.html">
            
                
                    <a href="../../note/css/xuanze.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.</b>
                        
                        选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.1" data-path="note/css/yuansu.html">
            
                
                    <a href="../../note/css/yuansu.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.1.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="note/css/csxuanze.html">
            
                
                    <a href="../../note/css/csxuanze.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.2.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="note/css/ziyuan.html">
            
                
                    <a href="../../note/css/ziyuan.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.3.</b>
                        
                        子元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="note/css/shuxing.html">
            
                
                    <a href="../../note/css/shuxing.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.4.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.5" data-path="note/css/weilei.html">
            
                
                    <a href="../../note/css/weilei.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.5.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.6" data-path="note/css/duixiang.html">
            
                
                    <a href="../../note/css/duixiang.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.6.</b>
                        
                        伪对象选择符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="8" data-path="note/css/zi.html">
            
                
                    <a href="../../note/css/zi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.</b>
                        
                        字体
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="8.1" data-path="note/css/font.html">
            
                
                    <a href="../../note/css/font.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.1.</b>
                        
                        font
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.2" data-path="note/css/icon.html">
            
                
                    <a href="../../note/css/icon.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.2.</b>
                        
                        icon
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.3" data-path="note/css/wenben.html">
            
                
                    <a href="../../note/css/wenben.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.3.</b>
                        
                        文本装饰
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="9" data-path="note/css/biankuan.html">
            
                
                    <a href="../../note/css/biankuan.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.</b>
                        
                        border
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="9.1" data-path="note/css/border.html">
            
                
                    <a href="../../note/css/border.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.1.</b>
                        
                        边框
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="9.2" data-path="note/css/tu.html">
            
                
                    <a href="../../note/css/tu.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.2.</b>
                        
                        圆角与背景
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="10" data-path="note/css/hezi.html">
            
                
                    <a href="../../note/css/hezi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>10.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="11" data-path="note/css/float.html">
            
                
                    <a href="../../note/css/float.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>11.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="12" data-path="note/css/position.html">
            
                
                    <a href="../../note/css/position.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>12.</b>
                        
                        定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="13" data-path="note/css/scss.html">
            
                
                    <a href="../../note/css/scss.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>13.</b>
                        
                        SCSS
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="14" data-path="note/css/donghua.html">
            
                
                    <a href="../../note/css/donghua.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>14.</b>
                        
                        动画
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="15" data-path="note/css/viewport.html">
            
                
                    <a href="../../note/css/viewport.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>15.</b>
                        
                        viewport
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="16" data-path="note/css/buju.html">
            
                
                    <a href="../../note/css/buju.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>16.</b>
                        
                        布局
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="17" data-path="note/css/rem.html">
            
                
                    <a href="../../note/css/rem.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>17.</b>
                        
                        rem的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18" data-path="note/css.shan.html">
            
            <span><b>18.</b> 响应式布局</span>
            
            
        </li>
    
        <li class="chapter " data-level="19" data-path="note/css.flex.html">
            
            <span><b>19.</b> flex</span>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >Qin-BookNote</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="viewport">viewport</h1>
<p>&#x4E00;&#x4E2A;&#x79FB;&#x52A8;&#x7248;&#x7684;meta&#x503C;&#xFF0C;&#x7528;&#x4E8E;&#x5B9A;&#x4E49;&#x89C6;&#x53E3;&#x7684;&#x5404;&#x79CD;&#x884C;&#x4E3A;&#x3002;&#x6700;&#x5F00;&#x59CB;&#x662F;&#x7531;Apple&#x5F15;&#x5165;&#xFF0C;&#x89E3;&#x51B3;&#x4E86;&#x79FB;&#x52A8;&#x7AEF;&#x7684;&#x9875;&#x9762;&#x95EE;&#x9898;&#x3002;
&#x540E;&#x6765;&#x88AB;&#x5404;&#x4E2A;&#x5382;&#x5BB6;&#x8DDF;&#x8FDB;&#x3002;&#x56E0;&#x4E3A;&#x667A;&#x80FD;&#x624B;&#x673A;&#x7684;&#x5E7F;&#x6CDB;&#x4F7F;&#x7528;,&#x7528;&#x6237;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x5E73;&#x79FB;&#x548C;&#x7F29;&#x653E;&#x6765;&#x770B;&#x7F51;&#x9875;&#x7684;&#x4E0D;&#x540C;&#x90E8;&#x5206;.</p>
<h2 id="layout-viewport">layout viewport</h2>
<p>Apple&#x65E9;&#x671F;&#x901A;&#x8FC7;&#x5B9A;&#x4E49;virwport meta&#x6807;&#x7B7E;&#xFF0C;&#x6765;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x865A;&#x62DF;&#x7684;&#x5E03;&#x5C40;&#x89C6;&#x53E3;&#x3002;&#x5404;&#x4E2A;&#x5382;&#x5546;&#x7684;&#x89C6;&#x53E3;&#x7684;&#x5206;&#x8FA8;&#x7387;&#x5404;&#x6709;&#x4E0D;&#x540C;&#x3002;
&#x8FD8;&#x53EF;&#x80FD;&#x66F4;&#x6539;&#x3002;</p>
<h2 id="visual-viewport">visual viewport</h2>
<p>&#x7528;&#x6765;&#x627F;&#x8F7D;layout viewport&#xFF0C;&#x7B80;&#x5355;&#x7684;&#x8BF4;&#x5C31;&#x662F;&#x624B;&#x6301;&#x8BBE;&#x5907;&#x7684;&#x53EF;&#x89C6;&#x533A;&#x57DF;&#xFF0C;
&#x5E38;&#x89C1;&#x7684;&#x5C3A;&#x5BF8;&#xFF1A;</p>
<ol>
<li>iPhone4~5S:320*480px</li>
<li>iPhone6~6S:375*627px</li>
<li>iPhone6 Plus~iPhone6S Plus: 414*736px</li>
</ol>
<p>&#x7528;&#x6237;&#x53EF;&#x4EE5;&#x5728;visual viewport&#x4E2D;&#x62D6;&#x52A8;&#x6216;&#x8005;&#x7F29;&#x653E;&#x7F51;&#x9875;&#xFF0C;&#x6765;&#x83B7;&#x5F97;&#x6D4F;&#x89C8;&#x6548;&#x679C;&#xFF1B;
&#x5E03;&#x5C40;&#x89C6;&#x53E3;&#x7528;&#x6765;&#x914D;&#x5408;CSS&#x6E32;&#x67D3;&#x5E03;&#x5C40;&#xFF0C;&#x5F53;&#x6211;&#x4EEC;&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x5BB9;&#x5668;&#x7684;&#x5BBD;&#x5EA6;&#x4E3A;100%&#x65F6;&#xFF0C;
&#x8FD9;&#x4E2A;&#x5BB9;&#x5668;&#x7684;&#x5B9E;&#x9645;&#x5BBD;&#x5EA6;&#x662F;980px&#x800C;&#x4E0D;&#x662F;320px&#xFF0C;&#x901A;&#x8FC7;&#x8FD9;&#x79CD;&#x65B9;&#x5F0F;&#x5927;&#x90E8;&#x5206;&#x7F51;&#x9875;&#x5C31;&#x80FD;&#x4EE5;&#x7F29;&#x653E;&#x7684;&#x5F62;&#x5F0F;&#x6B63;&#x5E38;&#x663E;&#x793A;&#x5728;&#x624B;&#x673A;&#x5C4F;&#x5E55;&#x4E0A;&#x4E86;&#x3002;</p>
<h2 id="ideal-viewport">ideal viewport</h2>
<p>&#x5B8C;&#x7F8E;&#x89C6;&#x53E3;&#xFF0C;&#x7528;&#x6237;&#x4E0D;&#x7528;&#x7F29;&#x653E;&#x548C;&#x62D6;&#x52A8;&#x7F51;&#x9875;&#x5C31;&#x80FD;&#x591F;&#x5F88;&#x597D;&#x7684;&#x8FDB;&#x884C;&#x7F51;&#x9875;&#x6D4F;&#x89C8;&#xFF0C;&#x901A;&#x8FC7;viewport meta&#x7684;&#x67D0;&#x79CD;&#x8BBE;&#x7F6E;&#x6765;&#x8FBE;&#x5230;&#x3002;</p>
<h2 id="viewport&#x7279;&#x6027;">viewport&#x7279;&#x6027;</h2>
<table>
<thead>
<tr>
<th style="text-align:center">Name</th>
<th style="text-align:center">Value</th>
<th style="text-align:center">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">width</td>
<td style="text-align:center">&#x6B63;&#x6574;&#x6570;&#x6216;device-width</td>
<td style="text-align:center">&#x5B9A;&#x4E49;&#x89C6;&#x53E3;&#x7684;&#x5BBD;&#x5EA6;&#xFF0C;&#x5355;&#x4F4D;&#x4E3A;&#x50CF;&#x7D20;</td>
</tr>
<tr>
<td style="text-align:center">height</td>
<td style="text-align:center">&#x6B63;&#x6574;&#x6570;&#x6216;device-height</td>
<td style="text-align:center">&#x5B9A;&#x4E49;&#x89C6;&#x53E3;&#x7684;&#x9AD8;&#x5EA6;&#xFF0C;&#x5355;&#x4F4D;&#x4E3A;&#x50CF;&#x7D20;</td>
</tr>
<tr>
<td style="text-align:center">initial-scale</td>
<td style="text-align:center">[0.0-10.0]</td>
<td style="text-align:center">&#x5B9A;&#x4E49;&#x521D;&#x59CB;&#x7F29;&#x653E;&#x503C;</td>
</tr>
<tr>
<td style="text-align:center">minimum-scale</td>
<td style="text-align:center">[0.0-10.0]</td>
<td style="text-align:center">&#x5B9A;&#x4E49;&#x7F29;&#x5C0F;&#x6700;&#x5C0F;&#x6BD4;&#x4F8B;&#xFF0C;&#x5B83;&#x5FC5;&#x987B;&#x5C0F;&#x4E8E;&#x6216;&#x7B49;&#x4E8E;maximum-scale&#x8BBE;&#x7F6E;</td>
</tr>
<tr>
<td style="text-align:center">maximum-scale</td>
<td style="text-align:center">[0.0-10.0]</td>
<td style="text-align:center">&#x5B9A;&#x4E49;&#x653E;&#x5927;&#x6700;&#x5927;&#x6BD4;&#x4F8B;&#xFF0C;&#x5B83;&#x5FC5;&#x987B;&#x5927;&#x4E8E;&#x6216;&#x7B49;&#x4E8E;minimum-scale&#x8BBE;&#x7F6E;</td>
</tr>
<tr>
<td style="text-align:center">user-scalable</td>
<td style="text-align:center">yes/no</td>
<td style="text-align:center">&#x5B9A;&#x4E49;&#x662F;&#x5426;&#x5141;&#x8BB8;&#x7528;&#x6237;&#x624B;&#x52A8;&#x7F29;&#x653E;&#x9875;&#x9762;&#xFF0C;&#x9ED8;&#x8BA4;&#x503C;yes</td>
</tr>
</tbody>
</table>
<p>width(height&#x8DDF;width&#x4E00;&#x6837;)</p>
<ul>
<li>layout viewport&#x7684;&#x5BBD;&#x5EA6;,&#x4E0D;&#x6307;&#x5B9A;&#x8BE5;&#x5C5E;&#x6027;,&#x5219;layout viewport&#x5BBD;&#x5EA6;&#x4E3A;&#x5382;&#x5546;&#x9ED8;&#x8BA4;&#x503C;<br><code>&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width&quot; /&gt;</code></li>
</ul>
<p>initial-scale&#xFF0C;&#x7528;&#x4E8E;&#x6307;&#x5B9A;&#x9875;&#x9762;&#x7684;&#x521D;&#x59CB;&#x7F29;&#x653E;&#x6BD4;&#x4F8B;</p>
<ul>
<li><code>&lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=2&quot; /&gt;</code>
&#x5C06;&#x770B;&#x5230;2&#x500D;&#x5927;&#x5C0F;&#x7684;&#x9875;&#x9762;&#x5185;&#x5BB9;
initial-scale&#x4E5F;&#x80FD;&#x5B9E;&#x73B0;ideal viewport&#xFF0C;&#x8FD9;&#x6837;&#x53EF;&#x4EE5;&#x5F97;&#x5230;&#x5B8C;&#x7F8E;&#x89C6;&#x53E3;
<code>&lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=1&quot; /&gt;</code></li>
</ul>
<p>maximum-scale,&#x80FD;&#x591F;&#x653E;&#x5927;&#x7684;&#x6BD4;&#x4F8B;(minimum-scale,&#x76F8;&#x53CD;)</p>
<ul>
<li><code>&lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=1,maximum-scale=5&quot; /&gt;</code>
&#x9ED8;&#x8BA4;&#x7F29;&#x653E;1&#xFF0C;&#x6700;&#x5927;&#x653E;&#x5927;5.    </li>
</ul>
<p>user-scalable&#xFF08;&#x7ED9;&#x4E0D;&#x7ED9;&#x7528;&#x6237;&#x6743;&#x529B;&#x653E;&#x5927;/&#x7F29;&#x5C0F;&#xFF09;</p>
<ul>
<li><code>&lt;meta name=&quot;viewport&quot; content=&quot;user-scalable=no&quot; /&gt;</code>&#x9ED8;&#x8BA4;yes</li>
</ul>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../note/css/donghua.html" class="navigation navigation-prev " aria-label="Previous page: 动画"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../note/css/buju.html" class="navigation navigation-next " aria-label="Next page: 布局"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"anchor-navigation-ex":{"isRewritePageTitle":true,"isShowTocTitleIcon":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
